import { defineStore } from 'pinia'
import pinia from './pinia.js'
const useStore = defineStore('app', {
  state() {
    return {
      a: 1,
      b: 2
    }
  },
  actions: {
    add() {
      console.log(999)
      this.a++
      console.log(this.a)
    }
  }
})

export default useStore(pinia)
